package com.ase.mobile.controller;

import com.ase.mobile.entity.User;
import com.ase.mobile.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gyhstart
 * @create 2021/5/25 - 2:01
 **/
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserService userService;

    /**
     * 添加用户
     *
     * @param
     * @return
     */
    @PostMapping("/saveUser")
    public String saveUser() {
        return userService.saveUser();
    }
}
